Optimal. Leaf size=53 \[ -\frac {a^2 p \log \left (a+b \sqrt {x}\right )}{b^2}+x \log \left (c \left (a+b \sqrt {x}\right )^p\right )+\frac {a p \sqrt {x}}{b}-\frac {p x}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {2448, 266, 43} \[ -\frac {a^2 p \log \left (a+b \sqrt {x}\right )}{b^2}+x \log \left (c \left (a+b \sqrt {x}\right )^p\right )+\frac {a p \sqrt {x}}{b}-\frac {p x}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 266
Rule 2448
Rubi steps
\begin {align*} \int \log \left (c \left (a+b \sqrt {x}\right )^p\right ) \, dx &=x \log \left (c \left (a+b \sqrt {x}\right )^p\right )-\frac {1}{2} (b p) \int \frac {\sqrt {x}}{a+b \sqrt {x}} \, dx\\ &=x \log \left (c \left (a+b \sqrt {x}\right )^p\right )-(b p) \operatorname {Subst}\left (\int \frac {x^2}{a+b x} \, dx,x,\sqrt {x}\right )\\ &=x \log \left (c \left (a+b \sqrt {x}\right )^p\right )-(b p) \operatorname {Subst}\left (\int \left (-\frac {a}{b^2}+\frac {x}{b}+\frac {a^2}{b^2 (a+b x)}\right ) \, dx,x,\sqrt {x}\right )\\ &=\frac {a p \sqrt {x}}{b}-\frac {p x}{2}-\frac {a^2 p \log \left (a+b \sqrt {x}\right )}{b^2}+x \log \left (c \left (a+b \sqrt {x}\right )^p\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 53, normalized size = 1.00 \[ -\frac {a^2 p \log \left (a+b \sqrt {x}\right )}{b^2}+x \log \left (c \left (a+b \sqrt {x}\right )^p\right )+\frac {a p \sqrt {x}}{b}-\frac {p x}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.46, size = 51, normalized size = 0.96 \[ -\frac {b^{2} p x - 2 \, b^{2} x \log \relax (c) - 2 \, a b p \sqrt {x} - 2 \, {\left (b^{2} p x - a^{2} p\right )} \log \left (b \sqrt {x} + a\right )}{2 \, b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.18, size = 97, normalized size = 1.83 \[ \frac {\frac {{\left (2 \, {\left (b \sqrt {x} + a\right )}^{2} \log \left (b \sqrt {x} + a\right ) - 4 \, {\left (b \sqrt {x} + a\right )} a \log \left (b \sqrt {x} + a\right ) - {\left (b \sqrt {x} + a\right )}^{2} + 4 \, {\left (b \sqrt {x} + a\right )} a\right )} p}{b} + \frac {2 \, {\left ({\left (b \sqrt {x} + a\right )}^{2} - 2 \, {\left (b \sqrt {x} + a\right )} a\right )} \log \relax (c)}{b}}{2 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 46, normalized size = 0.87 \[ -\frac {a^{2} p \ln \left (b \sqrt {x}+a \right )}{b^{2}}-\frac {p x}{2}+x \ln \left (c \left (b \sqrt {x}+a \right )^{p}\right )+\frac {a p \sqrt {x}}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.59, size = 50, normalized size = 0.94 \[ -\frac {1}{2} \, b p {\left (\frac {2 \, a^{2} \log \left (b \sqrt {x} + a\right )}{b^{3}} + \frac {b x - 2 \, a \sqrt {x}}{b^{2}}\right )} + x \log \left ({\left (b \sqrt {x} + a\right )}^{p} c\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.12, size = 47, normalized size = 0.89 \[ x\,\ln \left (c\,{\left (a+b\,\sqrt {x}\right )}^p\right )-\frac {p\,\left (b^2\,x+2\,a^2\,\ln \left (a+b\,\sqrt {x}\right )-2\,a\,b\,\sqrt {x}\right )}{2\,b^2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 1.50, size = 61, normalized size = 1.15 \[ - \frac {b p \left (\frac {2 a^{2} \left (\begin {cases} \frac {\sqrt {x}}{a} & \text {for}\: b = 0 \\\frac {\log {\left (a + b \sqrt {x} \right )}}{b} & \text {otherwise} \end {cases}\right )}{b^{2}} - \frac {2 a \sqrt {x}}{b^{2}} + \frac {x}{b}\right )}{2} + x \log {\left (c \left (a + b \sqrt {x}\right )^{p} \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________